package com.gwtjs.model;

/**
 * 分页参数，包装起来，免得用哪么多参数
 * @author aGuang
 *
 */
public class PageParam {
	private static PageParam param = new PageParam();

	private int start = 0;
	private int pageSize = 20;
	private boolean asc = false;
	private String orderProperty = "ID";

	private PageParam() {
	}

	public static PageParam getInstance() {
		return param;
	}

	public static PageParam getParam() {
		return param;
	}

	public static void setParam(PageParam param) {
		PageParam.param = param;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public boolean isAsc() {
		return asc;
	}

	public void setAsc(boolean asc) {
		this.asc = asc;
	}

	public String getOrderProperty() {
		return orderProperty;
	}

	public void setOrderProperty(String orderProperty) {
		this.orderProperty = orderProperty;
	}

}
